package com.fjh.shop.user.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AdminLoginDTO {
    @Min(value = 6, message = "用户名长度不能小于6位")
    @NotNull(message = "用户名不能为空")
    private String username;


    @Min(value = 6, message = "密码长度不能小于6位")
    @NotNull(message = "密码不能为空")
    @Schema(name = "密码")
    private String password;
}
